const api = require('./api.js');

//微信登录
export const wxLogin = (params) => api.post('/user/wxlogin', params);
//绑定手机号
export const getPhone = (params) => api.post('/user/bindMobile', params);
//修改手机号
export const changePhone = (params) => api.post('/user/editMobile', params);

/**
 * 首页模块
 */
//首页数据
export const homeInfo = (params) => api.post('/index/index', params);
//文章详情
export const addTx = (params) => api.post('/index/article_detail', params);
//咨询消息列表
export const consultationList = (params) => api.post('/index/consultationNews', params);

/**
 * 搜索模块 
 */
//搜索师傅
export const searchMaster = (params) => api.post('/index/search', params);

/**
 * 我的状态模块
 */
//我的状态
export const meState = (params) => api.post('/user/me_type', params);
//谈单记录
export const recordList = (params) => api.post('/order/talkSingleLst', params);
//修改我的状态
export const changeHome = (params) => api.post('/user/edit_page', params);
//接单距离
export const distance = (params) => api.post('/user/distance', params);
//自我介绍
export const introduce = (params) => api.post('/user/oneself', params);

/**
 * 同程师傅模块
 */
//同程师傅列表
export const masterList = (params) => api.post('/Worker/masterLst', params);
//师傅详情
export const masterDetail = (params) => api.post('/Worker/masterDetail', params);
//评论列表
export const commentList = (params) => api.post('/order/rslease_lst', params);
//施工案列列表
export const caseList = (params) => api.post('/Worker/constructionPlan', params);
//施工详情
export const caseDetails = (params) => api.post('/Worker/constructionPlanList', params);

/**
 * 找师傅模块
 */
//工种分类
export const workCate = (params) => api.post('/order/workCate', params);
//找师傅表单提交
export const workRelease = (params) => api.post('/order/release', params);
//找师傅工种
export const workType = (params) => api.post('/order/work', params);

/**
 * 订单模块
 */
//抢单中心
export const orderAll = (params) => api.post('/order/grabbingOrderCenter', params);
//我抢的单
export const orderRob = (params) => api.post('/order/myGrabbedOrder', params);
//我下的单
export const orderMy = (params) => api.post('/order/my_order', params);
//抢单 功能
export const robClick = (params) => api.post('/order/orderGrabbing', params);
//用户撤销审核/停止招标
export const revokeExamine = (params) => api.post('/order/revoke_examine', params);
//用户师傅确认开工
export const confirmWork = (params) => api.post('/order/confirmCommencement', params);
//师傅确认开工
export const workStart = (params) => api.post('/order/confirm', params);
//师傅确认完工
export const workFinish = (params) => api.post('/order/beFinish', params);
//回复谈单情况
export const replySituation = (params) => api.post('/order/talkSingle', params);
//回复谈单选项
export const replyChk = (params) => api.post('/order/talkTab', params);
//师傅立即报价/师傅修改报价
export const offerPrice = (params) => api.post('/order/offer', params);

/**
 * 支付模块
 */
//生成订单
export const createOrder = (params) => api.post('/order/payment', params);
//立即支付
export const wxPlay = (params) => api.post('/pay/pay', params);
//支付 0 元的 接口
export const PlayZero = (params) => api.post('/pay/zhifu', params);

/**
 * 工地模块
 */
//工地列表
export const workList = (params) => api.post('/order/constructionSite', params);
//发布 开工图片
export const upWorkDetail = (params) => api.post('/order/releaseDetail', params);

/**
 * 投诉模块
 */
//获取投诉选择
export const complaintInfo = (params) => api.post('/order/commentPage', params);
//投诉师傅表单提交
export const complaintSubmit = (params) => api.post('/order/complaint', params);

/**
 * 入驻申请模块
 */
//入驻申请/重新提交
export const apply = (params) => api.post('/user/settlement', params);
//获取重新提交申请页面数据
export const getApply = (params) => api.post('/user/submit_settlement', params);
//判断审核状态
export const whetherIf = (params) => api.post('/user/whetherIf', params);

/**
 * 评论模块
 */
//用户评论师傅
export const masterComment = (params) => api.post('/order/release_comments', params);

/**
 * 我的模块
 */
//意见反馈
export const feedback = (params) => api.post('/order/release_comments', params);
//个人中心
export const userInfo = (params) => api.post('/user/index', params);
//我的主页
export const homePageInfo = (params) => api.post('/user/my_page', params);
//支付保证金页面
export const securityMoney = (params) => api.post('/user/paymentPage', params);
//申请保证金退款
export const applyRefund = (params) => api.post('/user/refund_deposit', params);
//职信份记录
export const jobScore = (params) => api.post('/user/jobScore', params);
//项目手续费
export const serviceCharge = (params) => api.post('/order/offline', params);

/**
 * 分销模块
 */
//开户行列表
export const bankName = (params) => api.post('/bank/bank_list', params);
//添加银行卡
export const addBank = (params) => api.post('/bank/save_bank_card', params);
//银行卡列表
export const bankList = (params) => api.post('/bank/user_bank_list', params);
//解绑银行卡
export const relieveBank = (params) => api.post('/bank/delete_bank_card', params);
//提现页面
export const withdrawal = (params) => api.post('/bank/withdraw_info', params);
//申请提现
export const applyWithdrawal = (params) => api.post('/bank/apply_withdraw', params);
//我的团队
export const myTeam = (params) => api.post('/user/myTeam', params);
//我的推广
export const ShareFriends = (params) => api.post('/user/extension', params);
//获取海报
export const ShareImg = (params) => api.post('/Distribution/invitePoster', params);
//佣金明细
export const CommissionDetails = (params) => api.post('/user/CommissionDetails', params);

/**
 * 钱包模块
 */
//申请 钱包提现
export const walletWithdraw = (params) => api.post('/bank/wallet_withdrawal', params);

/**
 * 富文本模块
 */
//师傅入驻介绍
export const IntroductionTx = (params) => api.post('/index/recruitmentNew', params);
//平台收费规则
export const ruleChk = (params) => api.post('/index/ruleNew', params);
//平台规则详情
export const ruleDetail = (params) => api.post('/index/ruledetail', params);